package au.com.introprogexercise.core;

import au.com.introprogexercise.core.excercises.DiamondExercise;
import au.com.introprogexercise.core.excercises.FizzBuzzExercise;
import au.com.introprogexercise.core.excercises.PrimeFactorExercise;
import au.com.introprogexercise.core.excercises.TriangleExercise;

/**
 * Created by olga on 30/05/14.
 */
public class Main
{
    public static void main( String[] args)
    {
        TriangleExercise triangleExcercise = new TriangleExercise();
        triangleExcercise.printSingleAsteriskToConsoleWithCarriageReturn();
        triangleExcercise.drawHorisontalLineWithAsterisks(8);
        triangleExcercise.drawVerticalLineWithAsterisks(3);
        triangleExcercise.drawRightRectangle(3);

        System.out.println();
        DiamondExercise diamondExercise = new DiamondExercise();
        diamondExercise.printIsoscelesTriangle(7);
        System.out.println();
        diamondExercise.printDiamond(5);
        System.out.println();
        diamondExercise.printDiamondWithName(5);
        System.out.println();

        FizzBuzzExercise.fizzBuzz();

        for( int i : PrimeFactorExercise.generate(30))
            System.out.print( i + " ");

    }
}
